package com.mariusz.data;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlRootElement;

import com.mariusz.data.dto.Property;
import com.mariusz.data.dto.Rentier;

@XmlRootElement
public class XmlDataConatiner {
	
	private List<Property> properties;
	private List<Rentier> rentiers;

	public XmlDataConatiner(){
		properties = new ArrayList<Property>();
		setRentiers(new ArrayList<Rentier>());
		
	}

	public void setProperties(List<Property> properties) {
		
		this.properties = properties;
	}
	@XmlElement(name="Property")
	@XmlElementWrapper(name="Properties") 
	public List<Property> getProperties() {
		return properties;
	}

	public void setRentiers(List<Rentier> rentiers) {
		this.rentiers = rentiers;
	}
	@XmlElement(name="Rentier")
	@XmlElementWrapper(name="Rentiers")
	public List<Rentier> getRentiers() {
		return rentiers;
	}

}
